package com.feng.common.web;

import java.io.Serializable;

public class Range implements Serializable {

    private static final long serialVersionUID = 1L;

    private int length = 10;
    private int start = 0;

    public Range() {}

    public Range(int start, int length) {
        this.start = start;
        this.length = length;
    }

    public int getLength() {
        return length;
    }

    public void setLength(int length) {
        this.length = length;
    }

    public int getStart() {
        return start;
    }

    public void setStart(int start) {
        this.start = start;
    }

    @Override
    public String toString() {
        return "Range{" +
                "length=" + length +
                ", start=" + start +
                '}';
    }
}
